package com.westos.aopv1.proxy;

import java.lang.reflect.Method;

public class IOperatorBefore implements BeforeInterface {
    public Object before(Object proxy, Method method, Object[] args) {
        System.out.println("这是我们自己定义的Before接口");
        if(args.length!=2){
            System.out.println("参数个数不正确");
            return null;
        }
        if(args[0]==null||args[1]==null){
            System.out.println("参数不能为空");
            return null;
        }
        return null;
    }
}